import request from '@/utils/request'
//获取基本资料
export function getUserData(){
  return request({
    url:'/api/personalData/findByUserId',
    method:'post',
    
  })
}
//修改基本资料
export function editUserData(data){
  return request({
    url:'/api/personalData/updateByUserId',
    method:'post',
    data:data
  })
}
//修改账户资料
export function editAccountBinding(data){
  return request({
    url:'/api/personalData/updateByUserId',
    method:'post',
    data:data
  })
}
//查询收货地址
export function findAcceptAddress(data){
  return request({
    url:'/api/personalData/findAcceptAddress',
    method:'post',
    data:data
  })
}
//新增收货地址
export function addAcceptAddress(data){
  return request({
    url:'api/personalData/addAcceptAddress',
    method:'post',
    data:data
  })
}
//修改收货地址
export function edithAcceptAddress(data){
  return request({
    url:'api/personalData/updateAcceptAddress',
    method:'post',
    data:data
  })
}
//删除地址
export function deleteAcceptAddress(data){
  return request({
    url:'api/personalData/deleteAcceptAddress',
    method:'post',
    data:data
  })
}
//默认地址
export function defaultAcceptAddress(data){
  return request({
    url:'api/personalData/defaultAcceptAddress',
    method:'post',
    data:data
  })
}





//发送短信
export function sendoutSms(data){
  return request({
    url:'api/sms/sendOutSms',
    method:'post',
    data:data
  })
}

export function uploadFace(data){
  return request({
    url:"api/file/imageUpload",
    method:"post",
    data:data,
    headers:{
      'Content-Type': 'application/x-www-form-urlencoded', // 模拟form表单方式提交请求
    }
  })
}
